package cn.nawang.ebeim.client.bean;

public class DataSource {
  private String id;
  private String name;
  private String customerId;
  private Long spaceUsage;
  private Integer status;
  private Long nextRun;
  private Integer currentVersionMajor;
  private Integer currentVersionMinor;
  private String configId;
  private Integer count;
  private Integer isOpenLocalBackup;
  private String scanType;
  private String dsType;
  private String isEncrypt;
  private String root;
  private String scanHideFile;
  private String verifyCompleteName;
  private String verifyCompleteMaxCount;
  private String verifyCompleteTimer;
  private String fileAttrGainer;
  private String recordCanNotReadFileInfo;
  private String recordEmptyDirectory;
  private String recordEmptyFile;
  private String filterFileSuffix;
  private String dbUsername;
  private String dbPassword;
  private String dbType;
  private String dbHost;
  private String dbPort;
  private String dbName;
  private int dsStatus;
  private Integer createUserId;
  
  public int getCreateUserId() {
    return createUserId;
  }

  public void setCreateUserId(int createUserId) {
    this.createUserId = createUserId;
  }

  public String getIsEncrypt() {
    return isEncrypt;
  }

  public void setIsEncrypt(String isEncrypt) {
    this.isEncrypt = isEncrypt;
  }

  public String getCustomerId() {
    return customerId;
  }

  public void setCustomerId(String customerId) {
    this.customerId = customerId;
  }

  public Integer getIsOpenLocalBackup() {
    return isOpenLocalBackup;
  }

  public void setIsOpenLocalBackup(Integer isOpenLocalBackup) {
    this.isOpenLocalBackup = isOpenLocalBackup;
  }

  public String getDsType() {
    return dsType;
  }

  public void setDsType(String dsType) {
    this.dsType = dsType;
  }

  public String getScanHideFile() {
    return scanHideFile;
  }

  public String getRecordCanNotReadFileInfo() {
    return recordCanNotReadFileInfo;
  }

  public String getRecordEmptyDirectory() {
    return recordEmptyDirectory;
  }

  public String getRecordEmptyFile() {
    return recordEmptyFile;
  }

  public String getRoot() {
    return root;
  }

  public void setRoot(String root) {
    this.root = root;
  }

  public String getVerifyCompleteName() {
    return verifyCompleteName;
  }

  public void setVerifyCompleteName(String verifyCompleteName) {
    this.verifyCompleteName = verifyCompleteName;
  }

  public String getVerifyCompleteMaxCount() {
    return verifyCompleteMaxCount;
  }

  public void setVerifyCompleteMaxCount(String verifyCompleteMaxCount) {
    this.verifyCompleteMaxCount = verifyCompleteMaxCount;
  }

  public String getVerifyCompleteTimer() {
    return verifyCompleteTimer;
  }

  public void setVerifyCompleteTimer(String verifyCompleteTimer) {
    this.verifyCompleteTimer = verifyCompleteTimer;
  }

  public String getFileAttrGainer() {
    return fileAttrGainer;
  }

  public void setFileAttrGainer(String fileAttrGainer) {
    this.fileAttrGainer = fileAttrGainer;
  }

  public String getFilterFileSuffix() {
    return filterFileSuffix;
  }

  public void setFilterFileSuffix(String filterFileSuffix) {
    this.filterFileSuffix = filterFileSuffix;
  }

  public void setScanType(String scanType) {
    this.scanType = scanType;
  }

  public void setScanHideFile(String scanHideFile) {
    this.scanHideFile = scanHideFile;
  }

  public void setRecordCanNotReadFileInfo(String recordCanNotReadFileInfo) {
    this.recordCanNotReadFileInfo = recordCanNotReadFileInfo;
  }

  public void setRecordEmptyDirectory(String recordEmptyDirectory) {
    this.recordEmptyDirectory = recordEmptyDirectory;
  }

  public void setRecordEmptyFile(String recordEmptyFile) {
    this.recordEmptyFile = recordEmptyFile;
  }

  public Integer getCount() {
    return count;
  }

  public void setCount(Integer count) {
    this.count = count;
  }

  public DataSourceVersion getCurrentVersion() {
    return new DataSourceVersion(currentVersionMajor, currentVersionMinor);
  }

  public DataSourceVersion getNextVersion() {
    return new DataSourceVersion(currentVersionMajor + 1, currentVersionMinor);
  }
  
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getScanType(){
    return scanType;
  }
  public Long getSpaceUsage() {
    return spaceUsage;
  }

  public void setSpaceUsage(Long spaceUsage) {
    this.spaceUsage = spaceUsage;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public Long getNextRun() {
    return nextRun;
  }

  public void setNextRun(Long nextRun) {
    this.nextRun = nextRun;
  }

  public Integer getCurrentVersionMajor() {
    return currentVersionMajor;
  }

  public void setCurrentVersionMajor(Integer currentVersionMajor) {
    this.currentVersionMajor = currentVersionMajor;
  }

  public Integer getCurrentVersionMinor() {
    return currentVersionMinor;
  }

  public void setCurrentVersionMinor(Integer currentVersionMinor) {
    this.currentVersionMinor = currentVersionMinor;
  }

  public String getConfigId() {
    return configId;
  }

  public void setConfigId(String configId) {
    this.configId = configId;
  }

  public String getDbUsername() {
    return dbUsername;
  }

  public void setDbUsername(String dbUsername) {
    this.dbUsername = dbUsername;
  }

  public String getDbPassword() {
    return dbPassword;
  }

  public void setDbPassword(String dbPassword) {
    this.dbPassword = dbPassword;
  }

  public String getDbType() {
    return dbType;
  }

  public void setDbType(String dbType) {
    this.dbType = dbType;
  }

  public String getDbHost() {
    return dbHost;
  }

  public void setDbHost(String dbHost) {
    this.dbHost = dbHost;
  }

  public String getDbPort() {
    return dbPort;
  }

  public void setDbPort(String dbPort) {
    this.dbPort = dbPort;
  }

  public String getDbName() {
    return dbName;
  }

  public void setDbName(String dbName) {
    this.dbName = dbName;
  }
  
  public int getDsStatus() {
    return dsStatus;
  }

  public void setDsStatus(int dsStatus) {
    this.dsStatus = dsStatus;
  }

  @Override
  public String toString() {
    return "DataSource [id=" + id + ", name=" + name + ", customerId=" + customerId
        + ", spaceUsage=" + spaceUsage + ", status=" + status + ", nextRun=" + nextRun
        + ", currentVersionMajor=" + currentVersionMajor + ", currentVersionMinor="
        + currentVersionMinor + ", configId=" + configId + ", count=" + count
        + ", isOpenLocalBackup=" + isOpenLocalBackup + ", scanType=" + scanType + ", dsType="
        + dsType + ", isEncrypt=" + isEncrypt + ", root=" + root + ", scanHideFile=" + scanHideFile
        + ", verifyCompleteName=" + verifyCompleteName + ", verifyCompleteMaxCount="
        + verifyCompleteMaxCount + ", verifyCompleteTimer=" + verifyCompleteTimer
        + ", fileAttrGainer=" + fileAttrGainer + ", recordCanNotReadFileInfo="
        + recordCanNotReadFileInfo + ", recordEmptyDirectory=" + recordEmptyDirectory
        + ", recordEmptyFile=" + recordEmptyFile + ", filterFileSuffix=" + filterFileSuffix
        + ", dbUsername=" + dbUsername + ", dbPassword=" + dbPassword + ", dbType=" + dbType
        + ", dbHost=" + dbHost + ", dbPort=" + dbPort + ", dbName=" + dbName + ", dsStatus="
        + dsStatus + "]";
  }
}
